* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

#app {
  height: 100vh;
}

.panel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
}

.panel .left {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  height: 100%;
  overflow: auto;
  min-width: 600px;
  background-color: #f5f5f5;
  padding: 20px;
}

.panel .right {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 480px;
  background-color: #fff;
  padding: 20px;
  border-left: 1px solid #e0e0e0;
}

.drag-line {
  width: 4px;
  background-color: #ddd;
  cursor: col-resize;
  position: relative;
  transition: background-color 0.2s;
  /* 增加可点击区域 */
  padding: 0 8px;
  margin: 0 -8px;
  min-height: 100%;
}

.drag-line:hover,
.drag-line.isMoving {
  background-color: #007acc;
}

.drag-line:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: inherit;
}

.panel .inDrag * {
  user-select: none;
  pointer-events: none;
}

.panel .inDrag .drag-line {
  pointer-events: auto;
}
